package com.action;

import com.dao.ITabAttendanceDao;
import com.dao.ITabBacnendperformacedataDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabAttendance;
import com.po.TabBacnendperformacedata;

public class TabBacnendperformacedataAction extends BaseAction implements ModelDriven<TabBacnendperformacedata>{

	TabBacnendperformacedata form = new TabBacnendperformacedata();
	public TabBacnendperformacedata getModel(){
		return form;
	}
	private ITabBacnendperformacedataDao tabBacnendperformacedataDao;
	public void setTabBacnendperformacedataDao(ITabBacnendperformacedataDao tabBacnendperformacedataDao){
		this.tabBacnendperformacedataDao = tabBacnendperformacedataDao;
	}

	public String findByList(){
		form.setPager_count(tabBacnendperformacedataDao.findByCount(form));
		form.setTabbelist(tabBacnendperformacedataDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabBacnendperformacedataDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabBacnendperformacedataDao.updateObject(form);
		return "update";
	}

	

}
